<?php
class MgZona extends AppModel {

	var $name = 'MgZona';
	var $validate = array(
		'id' => array('numeric'),
		'mg_municipio_id' => array('numeric'),
		'descripcion' => array('notempty')
	);

	//The Associations below have been created with all possible keys, those that are not needed can be removed
	var $belongsTo = array(
		'MgMunicipio' => array(
			'className' => 'MgMunicipio',
			'foreignKey' => 'mg_municipio_id',
			'conditions' => '',
			'fields' => '',
			'order' => ''
			)
			);

			var $hasMany = array(
		'MgColonia' => array(
			'className' => 'MgColonia',
			'foreignKey' => 'mg_zona_id',
			'dependent' => false,
			'conditions' => '',
			'fields' => '',
			'order' => '',
			'limit' => '',
			'offset' => '',
			'exclusive' => '',
			'finderQuery' => '',
			'counterQuery' => ''
			)
			);

}
?>